<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>司机端配置</em></div>
    <ul class="nav nav-tabs">
      <li class="active"><a href="#tab-rider_mini_app" data-toggle="tab">司机端小程序配置</a></li>
      <li class=""><a href="#tab-rider_voice_app" data-toggle="tab">司机端语音配置</a></li>
      <li class=""><a href="#tab-rider_enter" data-toggle="tab">司机入驻协议</a></li>
      <!--<li class=""><a href="#tab-delivery" data-toggle="tab">配送相关配置</a></li>-->
    </ul>
  </div>

  <div class="panel-body">
    <div class="tab-content">


      <!--司机端小程序配置-->
      <div class="tab-pane fade active in" id="tab-rider_mini_app">
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

          <div class="row">
            <div class="col-sm-1"></div>
            <div class="col-xs-12 col-sm-10">
              <div class="panel panel-default">
                <div class="panel-heading">微信小程序参数配置</div>
                <div class="panel-body">

                  <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wx_mini_app_id')}:</label>
                    <div class="col-xs-12 col-sm-8">
                      <input id="c-wx_mini_app_id" data-rule="required" class="form-control" name="row[wx_mini_app_id]" type="text" value="{$row.wx_mini_app_id|default=''}">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wx_mini_app_secret')}:</label>
                    <div class="col-xs-12 col-sm-8">
                      <input id="c-wx_mini_app_secret" class="form-control" name="row[wx_mini_app_secret]" type="text" value="{$row.wx_mini_app_secret|default=''}">
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('open_audit')}:</label>
                    <div class="col-xs-12 col-sm-8">

                      <div class="radio">
                        <label for="row[open_audit]-1"><input id="row[open_audit]-1" name="row[open_audit]" type="radio" value="1" {in name="$row.open_audit" value="1"}checked{/in} /> 开启</label>
                        <label for="row[open_audit]-0"><input id="row[open_audit]-0" name="row[open_audit]" type="radio" value="0" {in name="$row.open_audit" value="0"}checked{/in} /> 关闭</label>
                      </div>

                      <p class="help-block">*小程序提审时，开启此配置，隐藏部分隐私配置，避免审核不过</p>
                    </div>
                  </div>

                  <div class="form-group" data-favisible="open_audit=1">
                    <label class="control-label col-xs-12 col-sm-2">{:__('audit_version')}:</label>
                    <div class="col-xs-12 col-sm-8">
                      <input id="c-audit_version" class="form-control" name="row[audit_version]" type="text" value="{$row.audit_version|default='1.0.0'}">
                      <p class="help-block">*小程序提审时，设置的审核版本号与当前提审的一致时，会隐藏部分隐私配置，其他正在运行的版本不受影响。</p>
                      <p class="help-block">司机端小程序版本号在司机端uniapp目录rider/api/config.js的version字段获取</p>
                    </div>
                  </div>

                </div>
              </div>
            </div>
          </div>


          <div class="row">
            <div class="col-sm-1"></div>
            <div class="col-xs-12 col-sm-10">
              <div class="panel panel-default">
                <div class="panel-heading">小程序样式配置</div>
                <div class="panel-body">

                  {include file="../application/admin/view/tongcheng/system_config/mini_app_theme_config.html" /}

                </div>
              </div>
            </div>
          </div>

          {include file="../application/admin/view/tongcheng/system_config/contact_config.html" /}

          <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
              <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
              <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
          </div>
        </form>
      </div>

      <!--司机端语音配置-->
      <div class="tab-pane fade" id="tab-rider_voice_app">
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Voice_order_new')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_order_new" data-rule="required" class="form-control" size="50" name="row[voice_order_new]" type="text" value="{$row.voice_order_new|default='/assets/addons/tongcheng/voice/voice_order_new.mp3'}">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_order_new" class="btn btn-danger faupload" data-input-id="c-voice_order_new" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_order_new"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_order_new" class="btn btn-primary fachoose" data-input-id="c-voice_order_new" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_order_new"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_order_new"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Voice_order_looted')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_order_looted" data-rule="required" class="form-control" size="50" name="row[voice_order_looted]" type="text" value="{$row.voice_order_looted|default='/assets/addons/tongcheng/voice/voice_order_looted.mp3'}">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_order_looted" class="btn btn-danger faupload" data-input-id="c-voice_order_looted" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_order_looted"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_order_looted" class="btn btn-primary fachoose" data-input-id="c-voice_order_looted" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_order_looted"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_order_looted"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Voice_order_cancel')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_order_cancel" data-rule="required" class="form-control" size="50" name="row[voice_order_cancel]" type="text" value="{$row.voice_order_cancel|default='/assets/addons/tongcheng/voice/voice_order_cancel.mp3'}">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_order_cancel" class="btn btn-danger faupload" data-input-id="c-voice_order_cancel" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_order_cancel"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_order_cancel" class="btn btn-primary fachoose" data-input-id="c-voice_order_cancel" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_order_cancel"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_order_cancel"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Voice_order_assign')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_order_assign" data-rule="required" class="form-control" size="50" name="row[voice_order_assign]" type="text" value="{$row.voice_order_assign|default='/assets/addons/tongcheng/voice/voice_order_assign.mp3'}">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_order_assign" class="btn btn-danger faupload" data-input-id="c-voice_order_assign" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_order_assign"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_order_assign" class="btn btn-primary fachoose" data-input-id="c-voice_order_assign" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_order_assign"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_order_assign"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Voice_order_refund_apply')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_order_refund_apply" data-rule="required" class="form-control" size="50" name="row[voice_order_refund_apply]" type="text" value="/assets/addons/tongcheng/voice/voice_order_refund_apply.mp3">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_order_refund_apply" class="btn btn-danger faupload" data-input-id="c-voice_order_refund_apply" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_order_refund_apply"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_order_refund_apply" class="btn btn-primary fachoose" data-input-id="c-voice_order_refund_apply" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_order_refund_apply"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_order_refund_apply"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('voice_transfer_create')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_transfer_create" data-rule="required" class="form-control" size="50" name="row[voice_transfer_create]" type="text" value="/assets/addons/tongcheng/voice/voice_transfer_create.mp3">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_transfer_create" class="btn btn-danger faupload" data-input-id="c-voice_transfer_create" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_transfer_create"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_transfer_create" class="btn btn-primary fachoose" data-input-id="c-voice_transfer_create" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_transfer_create"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_transfer_create"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('voice_transfer_agree')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_transfer_agree" data-rule="required" class="form-control" size="50" name="row[voice_transfer_agree]" type="text" value="/assets/addons/tongcheng/voice/voice_transfer_agree.mp3">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_transfer_agree" class="btn btn-danger faupload" data-input-id="c-voice_transfer_agree" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_transfer_agree"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_transfer_agree" class="btn btn-primary fachoose" data-input-id="c-voice_transfer_agree" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_transfer_agree"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_transfer_agree"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('voice_transfer_refuse')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_transfer_refuse" data-rule="required" class="form-control" size="50" name="row[voice_transfer_refuse]" type="text" value="/assets/addons/tongcheng/voice/voice_transfer_refuse.mp3">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_transfer_refuse" class="btn btn-danger faupload" data-input-id="c-voice_transfer_refuse" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_transfer_refuse"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_transfer_refuse" class="btn btn-primary fachoose" data-input-id="c-voice_transfer_refuse" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_transfer_refuse"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_transfer_refuse"></ul>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('voice_transfer_expire')}:</label>
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input id="c-voice_transfer_expire" data-rule="required" class="form-control" size="50" name="row[voice_transfer_expire]" type="text" value="/assets/addons/tongcheng/voice/voice_transfer_expire.mp3">
                <div class="input-group-addon no-border no-padding">
                  <span><button type="button" id="faupload-voice_transfer_expire" class="btn btn-danger faupload" data-input-id="c-voice_transfer_expire" data-mimetype="mp3" data-multiple="false" data-preview-id="p-voice_transfer_expire"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                  <span><button type="button" id="fachoose-voice_transfer_expire" class="btn btn-primary fachoose" data-input-id="c-voice_transfer_expire" data-mimetype="mp3" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-voice_transfer_expire"></span>
              </div>
              <ul class="row list-inline faupload-preview" id="p-voice_transfer_expire"></ul>
            </div>
          </div>

          <div class="form-group layer-footer">
              <label class="control-label col-xs-12 col-sm-2"></label>
              <div class="col-xs-12 col-sm-8">
                  <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                  <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
              </div>
          </div>
        </form>
      </div>

      <!--司机入驻协议-->
      <div class="tab-pane fade" id="tab-rider_enter">
        {include file="../application/admin/view/tongcheng/rider_config/rider_enter_config.html" /}
      </div>

    </div>
  </div>
</div>